	<div id="myHouse">
        <?php echo $this->htmlLeftCol;?>
        <div class="float-right" style="margin-left:10px;">
        	<div class="adTitle">Dành cho Quảng cáo</div>
        	<a href="#"><img src="<?php echo EVENT_STATIC_SERVER;?>/images/ad_160x600.gif" width="160" height="600" alt="ad" /></a>
        </div>
        <div class="colLarge float-right">
            <!--Start: box Thong Tin-->
            <div class="boxed">
                <div class="boxTop">
                    <div class="boxTopLeft_SK">
                        <div class="boxTopRight_SK">
                            <div class="tab">
                                <div class="tabItem2"><span><a href="/event/member/<?php echo $this->event->eid;?>">Thành viên</a></span></div>
                                <div class="tabItem2"><span><a href="/event/member/invited/<?php echo $this->event->eid;?>">Được mời</a></span></div>
                                <div class="tabItem2"><span><a href="/event/member/maybe/<?php echo $this->event->eid;?>">Có thể tham gia</a></span></div>
                                <?php if($this->isAdmin){?>
                                <div class="tabItem2S"><span><a href="/event/accept/<?php echo $this->event->eid;?>">Xin vào sự kiện</a></span></div>
                                <?php }
                                if($this->isCanAddMember){?>
                                <div class="tabItem2"><span><a href="/event/edit/member/<?php echo $this->event->eid;?>">Thêm thành viên</a></span></div>
                                <?php }?>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="boxBody eItemList" style="padding:10px;">
                    <!-- <span class="display-block relative"> Chọn từ các Clip của bạn. Các video bạn thêm vào sự kiện sẽ được xem bởi những ai có quyền truy cập nội dung của sự kiện</span> -->
                    <span style="float:left;  margin:7px 10px 8px 10px;">
                    	Có <strong><?php echo $this->totalRequest;?></strong> người xin tham gia
                    </span>
                	<a href="/event/detail/<?php echo $this->event->eid;?>" class="back_SK">Quay về: <?php echo $this->event->event_name;?></a>
                	
                    <div class="clear"></div>
                    <form action="/event/accept/<?php echo $this->event->eid;?>" method="POST" id="event_request_form">
                    <?php $totalRequest = count($this->waitingAcceptList);?>
                    <?php for($i=0;$i<$totalRequest; $i++){
                    		$user = $this->waitingAcceptList[$i];
                    		
                    		$avatar = EVENT_STATIC_SERVER."/images/nophoto.gif";
                    		if($user->avatar != ""){
                    			$avatar = EVENT_IMG_SERVER."/".$user->avatar;
                    		}
                    	?>
                    
                    <div class="catEventItem">
                        <div>
                            <div class="wrapEventNew01 catEventImg">
                                <div class="wrapEventNew02"> <a href="/home/<?php echo $user->name?>"><img src="<?php echo $avatar;?>" onload="resizeImage(this,95,95)"/></a> </div>
                            </div>
                            <div class="catEventSelect">
                            	<?php if($this->isAdmin){?>
                                <div class="buttonUp clear mb10px"><span><a href="#" onClick="acceptOneRequest(<?php echo $user->uid?>);">Chấp nhận</a></span></div>
                                <?php }?>
                                <!-- <div class="buttonNext clear"><span><a href="#">Danh&nbsp;sách&nbsp;bạn</a></span></div>-->
                                <div class="clear"></div>
                            </div>
                            <div class="catEventContent">
                            	Chọn: <input type="checkbox" class="requestCheckbox" name="uid[]" value="<?php echo $user->uid?>" id="request_uid_<?php echo $user->uid?>"><br />
                            	Họ và tên: <a href="/home/<?php echo $user->name?>"><?php echo $user->first_name." ".$user->last_name;?></a><br />
                                Nickname: <a href="/home/<?php echo $user->name?>"><?php echo $user->name?></a><br />
                            </div>
                            <div class="clear"></div>
                        </div>
                    </div>
                    <?php }//end of for loop?>
                    <div class="clear"></div>
                    <?php if($this->isAdmin && $totalRequest){?>
                    <div style="padding:5px 0 20px 0;clear:both;">
                        <div class="buttonUp" style="background:none;">
                        	<input type="button" class="blogButton" value="Chấp nhận" onClick="acceptRequest();" title="Chấp nhận các yêu cầu tham gia sự kiện đã chọn" />
                        	&nbsp;&nbsp;
                        	<input type="button" class="blogButton" value="Loại bỏ" onClick="delRequest();" title="Loại bỏ các yêu cầu tham gia sự kiện đã chọn" />
                        	<input type="hidden" name="action" value="0" id="h_action">
                        </div>
                        <div class="clear"></div>
                    </div>
                    </form>
                    <div class="clear"></div>
                    <?php }?>
                    
                    <?php 
                    if($totalRequest){
                    	echo $this->pager;
                    }?>
                </div>
                <div class="boxBottom"><span><b></b></span></div>
            </div>
            <!--End: box Thong Tin-->
        </div>
        <div class="clear"></div>
    </div>
    <div class="clear"></div>
<script type="text/javascript">

function acceptRequest(){
	$("input#h_action").val(1);
	$("form#event_request_form").submit();
}

function acceptOneRequest(uid){
	$("input.requestCheckbox").attr('checked', false);
	$("input#h_action").val(1);
	$("input#request_uid_"+uid).attr('checked', true);
	$("form#event_request_form").submit();
}

function delRequest(){
	$("input#h_action").val(-1);
	$("form#event_request_form").submit();
}
</script>